package ch.pizzapp.kurier.data;

import java.util.ArrayList;
import java.util.List;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonProperty;

public class NotificationDataList implements Parcelable {

	@JsonProperty("notifications")
	List<NotificationData> NotificationDataList;

	@JsonProperty("status")
	String status;

	@JsonProperty("type")
	String type;

	@JsonProperty("total")
	Integer total;

	public List<NotificationData> getNotificationDataList() {
		return this.NotificationDataList;
	}

	public void setNotificationDataList(
			List<NotificationData> NotificationDataList) {
		this.NotificationDataList = NotificationDataList;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getTotal() {
		return this.total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	protected NotificationDataList(Parcel in) {
		NotificationDataList = new ArrayList<NotificationData>();
		in.readList(NotificationDataList,
				NotificationData.class.getClassLoader());
		status = in.readString();
		type = in.readString();
		total = in.readInt();
	}

	public NotificationDataList() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeList(NotificationDataList);
		dest.writeString(status);
		dest.writeString(type);
		dest.writeInt(total);
	}

	public static final Parcelable.Creator<NotificationDataList> CREATOR = new Parcelable.Creator<NotificationDataList>() {
		public NotificationDataList createFromParcel(Parcel in) {
			return new NotificationDataList(in);
		}

		public NotificationDataList[] newArray(int size) {
			return new NotificationDataList[size];
		}
	};
}